home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d14 / dflat.arc / MESSAGE.H < prev    next >
Text File  |  1991-04-28  |  2KB  |  96 lines

  1. /* ----------- message.h ------------ */
  2.  
  3. #ifndef MESSAGES_H
  4. #define MESSGAES_H
  5.  
  6. #define MAXMESSAGES 50
  7. #define DELAYTICKS 1
  8. #define FIRSTDELAY 7
  9. #define DOUBLETICKS 5
  10.  
  11. /* --------- event message codes ----------- */
  12. typedef enum messages {
  13.     START,
  14.     STOP,
  15.     CLOCKTICK,
  16.     CAPTURE_CLOCK,
  17.     RELEASE_CLOCK,
  18.  
  19.     CREATE_WINDOW,
  20.     SHOW_WINDOW,
  21.     HIDE_WINDOW,
  22.     CLOSE_WINDOW,
  23.     SETFOCUS,
  24.     PAINT,
  25.     BORDER,
  26.     MOVE,
  27.     SIZE,
  28.     MAXIMIZE,
  29.     MINIMIZE,
  30.     RESTORE,
  31.     TITLE,
  32.     INSIDE_WINDOW,
  33.  
  34.     ADDTEXT,
  35.     CLEARTEXT,
  36.     SETTEXT,
  37.     SELECTION,
  38.     SCROLL,
  39.     HORIZSCROLL,
  40.  
  41.     MOUSE_INSTALLED,
  42.     RIGHT_BUTTON,
  43.     LEFT_BUTTON,
  44.     DOUBLE_CLICK,
  45.     MOUSE_MOVED,
  46.     BUTTON_RELEASED,
  47.     CURRENT_MOUSE_CURSOR,
  48.     MOUSE_CURSOR,
  49.     SHOW_MOUSE,
  50.     HIDE_MOUSE,
  51.     WAITMOUSE,
  52.     TESTMOUSE,
  53.     CAPTURE_MOUSE,
  54.     RELEASE_MOUSE,
  55.  
  56.     BUILDMENU,
  57.     BUILD_SELECTIONS,
  58.     CLOSE_POPDOWN,
  59.  
  60.     LB_SELECTION,        /* sent to parent when user selects             */
  61.     LB_CHOOSE,            /* sent to parent when user chooses              */
  62.     LB_CURRENTSELECTION,/* returns the current selection             */
  63.     LB_GETTEXT,            /* returns the text of a selection             */
  64.     LB_SETSELECTION,    /* sets the listbox selection                */
  65.  
  66.     EB_GETTEXT,
  67.     EB_PUTTEXT,
  68.  
  69.     INITIATE_DIALOG,
  70.     ENTERFOCUS,
  71.     LEAVEFOCUS,
  72.     ENDDIALOG,
  73.  
  74.     KEYBOARD,
  75.     CAPTURE_KEYBOARD,
  76.     RELEASE_KEYBOARD,
  77.     KEYBOARD_CURSOR,
  78.     CURRENT_KEYBOARD_CURSOR,
  79.     HIDE_CURSOR,
  80.     SHOW_CURSOR,
  81.     SAVE_CURSOR,
  82.     RESTORE_CURSOR,
  83.     SHIFT_CHANGED,
  84.  
  85.     COMMAND
  86. } MESSAGE;
  87.  
  88. /* --------- message prototypes ----------- */
  89. void init_messages(void);
  90. void PostMessage(WINDOW, MESSAGE, PARAM, PARAM);
  91. int SendMessage(WINDOW, MESSAGE, PARAM, PARAM);
  92. int dispatch_message(void);
  93. int TestCriticalError(void);
  94.  
  95. #endif
  96.